using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using LCTNote.Models.DataModels;

namespace LCTNote
{
    public partial class frmTaoThuMuc : DevComponents.DotNetBar.Metro.MetroForm
    {
        private ThuMucDataModel thuMuc;
        public frmTaoThuMuc()
        {
            InitializeComponent();
        }

        private void frmTaoThuMuc_Load(object sender, EventArgs e)
        {

        }

        private void btnTao_Click(object sender, EventArgs e)
        {
            thuMuc = new ThuMucDataModel();
            thuMuc.tenThuMuc = txtTen.Text;
            thuMuc.moTaThuMuc = txtMoTa.Text;

            this.DialogResult = DialogResult.OK;
        }

        private void btnHuy_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }

        public ThuMucDataModel layThuMuc()
        {
            return this.thuMuc;
        }
    }
}